﻿using Terraria.ModLoader;
using Terraria;

namespace EAS.Content.Buffs
{
    public class CustomDebuff : ModBuff
    {
        public override void SetStaticDefaults()
        {
            Main.buffNoSave[Type] = true;
            Main.debuff[Type] = true;             
        }       
        public override void Update(NPC npc, ref int buffIndex)
        {           
            npc.velocity *= 0.9f;
            npc.defense = (int)(npc.defense * 0.8f);             
        }
    }
}
